package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.Addr;
import com.stedu.mall.common.exception.SteduException;

import java.util.List;

public interface AddrService {
    //增加
    boolean insert(Addr addr) throws SteduException;
    //删除
    boolean delete(Integer id,Integer userId) throws SteduException;
    //修改
    boolean update(Addr addr,Integer userId) throws SteduException;
    //根据条件查询
    List<Addr> selectByCondition(Addr condition);
    //根据id查询
    Addr selectById(Integer id);
}
